import React,{useContext} from 'react'
import MyContext from '../MyContext'
export default function Child() {
  const obj=useContext(MyContext)
  return (
    <div style={{
      width:'300px',
      height:'300px',
      background:'skyblue',
      display:'flex',
      justifyContent:'center',
      alignItems:'center',
      borderRadius:'50%'
    }}>
      {obj.val}
    </div>
  )
}
